package com.slj.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 员工登录表
 * </p>
 *
 * @author 礼俊
 * @since 2025-09-20 22:46
 */
@Getter
@Setter
@ToString
@TableName("employees")
@Schema(name = "Employees", description = "员工登录表")
public class Employees extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 员工Id
     */
    @Schema(description = "员工Id")
    @TableId(value = "employee_id", type = IdType.AUTO)
    private Integer employeeId;

    /**
     * 登录名
     */
    @TableField("login_name")
    @Schema(description = "登录名")
    private String loginName;

    /**
     * 用户名
     */
    @TableField("emp_name")
    @Schema(description = "用户名")
    private String empName;

    /**
     * 登录密码
     */
    @TableField("password")
    @Schema(description = "登录密码")
    private String password;

    /**
     * 职位
     */
    @TableField("position")
    @Schema(description = "职位")
    private String position;

    /**
     * 邮箱
     */
    @TableField("email")
    @Schema(description = "邮箱")
    private String email;

    /**
     * 联系电话
     */
    @TableField("phone_number")
    @Schema(description = "联系电话")
    private String phoneNumber;

    /**
     * 工资
     */
    @TableField("salary")
    @Schema(description = "工资")
    private BigDecimal salary;
}
